  <!DOCTYPE html>
  <html>
  <head>
    <title>Update Student</title>
    <style>
      body {
        font-family: Arial, sans-serif;
        background-color: #f2f2f2;
        margin: 0;
        padding: 20px;
      }

      h1 {
        text-align: center;
        margin-bottom: 20px;
      }

      form {
        max-width: 400px;
        margin: 0 auto;
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      }

      label {
        display: block;
        margin-bottom: 10px;
        font-weight: bold;
      }

      input[type="text"],
      input[type="number"],
      input[type="email"] {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        margin-bottom: 10px;
      }

      button[type="submit"] {
        background-color: #4CAF50;
        color: #fff;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
      }

      button[type="submit"]:hover {
        background-color: #45a049;
      }
    </style>
  </head>
  <body>
    <h1>Update Student</h1>
    <form method="post">
      {% csrf_token %}
      <input type="hidden" name="id" value="{{ student.id }}">
      <div>
        <label for="name">Name:</label>
        <input type="text" id="name" name="name" value="{{ student.name }}" required>
      </div>
      <div>
        <label for="age">Age:</label>
        <input type="number" id="age" name="age" value="{{ student.age }}" required>
      </div>
      <div>
        <label for="email">Email:</label>
        <input type="email" id="email" name="email" value="{{ student.email }}" required>
      </div>
      <div>
        <label for="address">Address:</label>
        <input type="text" id="address" name="address" value="{{ student.address }}" required>
      </div>
      <div>
        <label for="phone">Phone:</label>
        <input type="text" id="phone" name="phone" value="{{ student.phone }}" required>
      </div>
      <button type="submit">更新信息</button>
    </form>
  </body>
  </html>